package com.jzlin.funhub.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzlin.funhub.admin.model.dto.SysMessageSessionNotReadDTO;
import com.jzlin.funhub.admin.model.entity.SysMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 站内私信表 Mapper 接口
 * </p>
 *
 * @author jzlin
 * @since 2025-08-26
 */
public interface SysMessageMapper extends BaseMapper<SysMessage> {
    /**
     * 查询会话未读信息数
     * @return
     */
    List<SysMessageSessionNotReadDTO> countSessionNotReadByUserId(@Param("userId") Long userId);
}
